<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cn.netjava.pojo.PhotoAlbum;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>this is my person photo page</title>
    <link rel="stylesheet" type="text/css" href="css/personarticle.css" />
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div id="container">
       <div id="front">
          <jsp:include page="personfront.jsp"></jsp:include>
       </div> 
       
       <div id="main">
          <div id="left">
             <%List<PhotoAlbum> photoAlbumList = (List<PhotoAlbum>)request.getAttribute("userPhotoAlbums"); %>
             <div class="left_title">相册
             </div>
             
             <div class="left_content">
                <%if(null!=photoAlbumList){
                 for(PhotoAlbum photoAlbum:photoAlbumList){ %>
                    <div class="photo">
	                    <a href="personphoto.cn?albumid=<%=photoAlbum.getId() %>&&uid=<%=photoAlbum.getUser().getId() %>"><img src="<%=photoAlbum.getPhotoAlbumCover() %>" width="114" height="114" /></a>
	                    <br>
	                    <a href="personphoto.cn?albumid=<%=photoAlbum.getId() %>&&uid=<%=photoAlbum.getUser().getId() %>"><%=photoAlbum.getPhotoAlbumName() %></a>
                    </div>
                 <%}} %>
             </div>
          </div>
          
          <div id="right">
          </div>
       </div>
       
       <jsp:include page="../footer.jsp"></jsp:include>
    </div> 
  </body>
</html>
